package c.c.k.repository;

import c.c.k.pojo.UserStock;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by chenck on 2022/3/19.
 */
@Repository
public interface UserStockRepository extends JpaRepository<UserStock, Long> {
    List<UserStock> findByUserId(Long userId);
    UserStock findByUserIdAndStockId(Long userId, Long stockId);
}
